package org.geektime;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@SpringBootApplication
@EnableConfigurationProperties
public class DemoApplication {

  public static void main(String[] args) {
    SpringApplication springApplication = new SpringApplication(DemoApplication.class);
    ApplicationContext applicationContext = springApplication.run(args);
    System.out.println(applicationContext.getBean("tomCat"));
    System.out.println(applicationContext.getBean("tcat"));
    System.out.println(applicationContext.getBean("factoryCat"));

  }
}
